//package com.example.mongodb.demo.configuration;
//
//import com.mongodb.ConnectionString;
//import com.mongodb.reactivestreams.client.MongoClient;
//import com.mongodb.reactivestreams.client.MongoClients;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.mongodb.core.ReactiveMongoTemplate;
//
///**
// * @author zero
// * @date 2019-11-01
// **/
//@Configuration
//public class MongoDBConfig {
//
//    @Bean
//    public MongoClient reactiveMongoClient() {
//        ConnectionString cs = new ConnectionString("mongodb://49.233.130.77");
//        return MongoClients.create("mongodb://49.233.130.77");
//    }
//
//    @Bean
//    public ReactiveMongoTemplate reactiveMongoTemplate() {
//        return new ReactiveMongoTemplate(reactiveMongoClient(), "demo");
//    }
//}
